package com.ray.service;

import com.ray.dao.UserDao;
import com.ray.dao.UserDaoImpl;
import com.ray.pojo.User;

import java.util.List;

public class UserServiceImpl implements UserService
{

    /**
     * @param id
     * @return
     */
    @Override
    public User getUser(int id)
    {
        UserDao userdao = new UserDaoImpl();
        return userdao.getUser(id);
    }

    /**
     * @return
     */
    @Override
    public List<User> getUserList()
    {
        return null;
    }

    /**
     * @param user
     * @return
     */
    @Override
    public int updateUser(User user)
    {
        return 0;
    }

    /**
     * @param user
     * @return
     */
    @Override
    public int addUser(User user)
    {
        return 0;
    }

    /**
     * @param id
     * @return
     */
    @Override
    public int deleteUser(int id)
    {
        return 0;
    }
}
